using System;

namespace BTEditor
{
    public abstract class Composite : EditorNode
    {
        public override EditorNodeEnum NodeEnum
        {
            get { return EditorNodeEnum.Composite; }
        }
        
        public override int CanAddNodeCount
        {
            get { return EditorNodeConst.Normal_Composite_CanAddNode; }
        }

        protected int BTNodeSort(BTNode node1, BTNode node2)
        {
            if (node1.NodeRect.x > node2.NodeRect.x)
            {
                return 1;
            }
            else if (node1.NodeRect.x == node2.NodeRect.x)
            {
                return 0;
            }
            else
            {
                return -1;
            }
        }
    }
}